import axios, { AxiosInstance } from 'axios';

const apiClient: AxiosInstance = axios.create({
  baseURL: 'http://localhost:8000/fano/api',
  headers: {
    'Content-Type': 'application/json',
  },
});

export const fetchImage = async (): Promise<image[]> => {
  const response = await apiClient.get<image[]>('/image');
  return response.data;
};